SRCS = tcp_server.cpp t_thread.cpp tsocket.cpp
OBJS = tcp_server.o t_thread.o tsocket.o
HDRS = ../define/define.h
LIBUTILS = libtcp_server.a

CC = g++
CFLAGS =  -c -g
INCLUDES = ../define
%.o : %.cpp
	$(CC) $(CFLAGS) -I$(INCLUDES) $< $(LDFLAGS) -o $@

$(LIBUTILS): $(OBJS)
	ar -cr $(LIBUTILS) $(OBJS)
	ranlib $(LIBUTILS)

clean:
	rm -f *.o *.a
